package com.summer.jira.model;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class BugSummaryFile {

	private String fileName = "质量报告";
	private String projectName;
	private String version;
	private String unit;
	private String maker;
	private String projectManager;
	private String techManager;
	private String develop;
	private Date testStartDate;
	private Date testEndDate;
	private String testStartDateStr;
	private String testEndDateStr;
	private Integer totalCount;
	private Integer developCount;
	private List<Map<String, Object>> testArea;
	
	private DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
	
	
	public BugSummaryFile() {
		super();
	}
	public BugSummaryFile(String fileName, String projectName, String version, String unit, String maker,
			String projectManager, String develop, Date testStartDate, Date testEndDate, String testStartDateStr,
			String testEndDateStr, Integer totalCount, List<Map<String, Object>> testArea) {
		super();
		this.fileName = fileName;
		this.projectName = projectName;
		this.version = version;
		this.unit = unit;
		this.maker = maker;
		this.projectManager = projectManager;
		this.develop = develop;
		this.testStartDate = testStartDate;
		this.testEndDate = testEndDate;
		this.testStartDateStr = testStartDateStr;
		this.testEndDateStr = testEndDateStr;
		this.totalCount = totalCount;
		this.testArea = testArea;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getMaker() {
		return maker;
	}
	public void setMaker(String maker) {
		this.maker = maker;
	}
	public String getProjectManager() {
		return projectManager;
	}
	public void setProjectManager(String projectManager) {
		this.projectManager = projectManager;
	}
	public String getTechManager() {
		return techManager;
	}
	public void setTechManager(String techManager) {
		this.techManager = techManager;
	}
	public String getDevelop() {
		return develop;
	}
	public void setDevelop(String develop) {
		this.develop = develop;
	}
	public Date getTestStartDate() {
		return testStartDate;
	}
	public void setTestStartDate(Date testStartDate) {
		this.testStartDate = testStartDate;
	}
	public Date getTestEndDate() {
		return testEndDate;
	}
	public void setTestEndDate(Date testEndDate) {
		this.testEndDate = testEndDate;
	}
	public String getTestStartDateStr() {
		return df.format(this.getTestStartDate());
	}
	public void setTestStartDateStr(String testStartDateStr) {
		this.testStartDateStr = testStartDateStr;
	}
	public String getTestEndDateStr() {
		return df.format(this.getTestEndDate());
	}
	public void setTestEndDateStr(String testEndDateStr) {
		this.testEndDateStr = testEndDateStr;
	}
	public Integer getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}
	public Integer getDevelopCount() {
		return developCount;
	}
	public void setDevelopCount(Integer developCount) {
		this.developCount = developCount;
	}
	public List<Map<String, Object>> getTestArea() {
		return testArea;
	}
	public void setTestArea(List<Map<String, Object>> testArea) {
		this.testArea = testArea;
	}
	public DateFormat getDf() {
		return df;
	}
	public void setDf(DateFormat df) {
		this.df = df;
	}
	@Override
	public String toString() {
		return "BugSummaryFile [fileName=" + fileName + ", projectName=" + projectName + ", version=" + version
				+ ", unit=" + unit + ", maker=" + maker + ", projectManager=" + projectManager + ", techManager="
				+ techManager + ", develop=" + develop + ", testStartDate=" + testStartDate + ", testEndDate="
				+ testEndDate + ", testStartDateStr=" + testStartDateStr + ", testEndDateStr=" + testEndDateStr
				+ ", totalCount=" + totalCount + ", developCount=" + developCount + ", testArea=" + testArea + ", df="
				+ df + "]";
	}
	
	
}
